﻿@using CodeCamp.Models.Sessions
@model SessionsEditViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Session Details for " + @Model.Title);
    }
    else
    {
        ViewBag.Title = "Code Camp | Session Details for " + @Html.Encode(@Model.Title);
    }
}

@section headaddon {
<style>
    #Title
    {
        width: 40em;
    }
    #SessionMaterialsUrl
    {
        width: 40em;
    }
    .editor-label
    {
        margin-top: 10px;
        width: 40em;
    }
    fieldset label 
    {
        width: 40em;
    }
    p.field-note
    {
        font-size: 10px;
        margin-bottom: 2px;
    }
</style>
}

<h2>Edit this session</h2>

@Html.Partial("PartialViews/EditPartial", @Model)

@Html.ActionLink("Back to Details", "Details", new { id = @Model.SessionId })

@section sidebar {
    @Html.Partial("SidebarCommonPartial")

    <div id="eventTagsContainer" class="widget rounded-10">
        <h3>Event Tags</h3>
        @* @Html.RenderPartial("PartialViews/EventTags", @Model.EventTagsInUse ) *@
    </div>
}

